<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>提现审核</title>
    <meta name="description" content="提现审核">
    <meta name="keywords" content="提现审核">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="${contextPath}/assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="${contextPath}/assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="${contextPath}/assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="${contextPath}/assets/css/amazeui.datatables.min.css"/>
    <link rel="stylesheet" href="${contextPath}/assets/css/app.css">
    <script src="${contextPath}/assets/js/jquery.min.js"></script>

</head>

<body data-type="widgets">
<script src="${contextPath}/assets/js/theme.js"></script>
<div class="am-g tpl-g">
    <!-- 头部 -->
    <#include "/pc/common/header.html" />
    <!-- 侧边导航栏 -->
    <#include "/pc/common/left.html" />
    <!-- 内容区域 -->
    <div class="tpl-content-wrapper">
        <div class="row-content am-cf">
            <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                    <div class="widget am-cf">
                        <ol class="am-breadcrumb widget-head">
                            <li><a href="${contextPath}/index.htm" class="am-icon-home">首页</a></li>
                            <li>系统管理</li>
                            <li><a href="${contextPath}/settings/jsgl.htm">打款申请</a></li>
                        </ol>
                        <div class="widget-body  am-fr">
                            <div class="am-u-sm-12">
                                <form class="am-form am-form-horizontal" id="myform"
                                      action="${contextPath}/cash/paysave.htm" method="post">
                                    <fieldset>
                                        <div class="am-u-sm-6">
                                            <div class="am-panel am-panel-default am-panel-default">
                                                <div class="am-panel-hd">申请会员信息</div>
                                                <div class="am-panel-bd" style="height: 400px">
                                                    <p><strong>会员昵称：</strong>${member.nickname!}</p>
                                                    <p><strong>手机号：</strong>${member.tel!}</p>
                                                    <p><strong>身份证号：</strong>${member.cardno!}</p>
                                                    <p><strong>真实姓名：</strong>${member.realname!}</p>
                                                    <p><strong>是否实名制：</strong>
                                                        <#if member.ischeckname??>
                                                            ${dict.getDicName('member_isCheckName',member.ischeckname?c)}
                                                        </#if>
                                                    </p>
                                                    <p><strong>是否激活：</strong>
                                                        <#if member.isactive??>
                                                            ${dict.getDicName('member_isActive',member.isactive?c)}
                                                        </#if>
                                                    </p>
                                                    <p><strong>是否合作商：</strong>
                                                        <#if member.ismerchant??>
                                                            ${dict.getDicName('member_isMerchant',member.ismerchant?c)}
                                                        </#if>
                                                    </p>
                                                    <p><strong>注册时间：</strong>
                                                        <#if member.createtime??>
                                                            ${member.createtime?string('yyyy-MM-dd HH:mm:ss')}
                                                        </#if>
                                                    </p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="am-u-sm-6">
                                            <div class="am-panel am-panel-default am-panel-default">
                                                <div class="am-panel-hd">申请打款信息</div>
                                                <div class="am-panel-bd" style="height: 400px">
                                                    <p><strong>归属城市：</strong>
                                                        <#if pay.cityid??>${dict.getCityName(pay.cityid?c)}</#if>
                                                    </p>
                                                    <p><strong>打款金额：</strong>${pay.payamount!0}
                                                        <small>元</small>
                                                    </p>
                                                    <p><strong>提现类别：</strong>
                                                        <#if pay.category??>
                                                            ${dict.getDicName('cash_pay_category',pay.category?c)}
                                                        </#if>
                                                    </p>
                                                    <p><strong>打款状态：</strong>
                                                        <#if pay.paystatus??>
                                                            ${dict.getDicName('cash_pay_payStatus',pay.paystatus?c)}
                                                        </#if>
                                                    </p>
                                                    <#if pay.paytype?? && pay.paytype==1>
                                                        <p><strong>打款方式：</strong>
                                                            <#if pay.paytype??>
                                                                ${dict.getDicName('cash_pay_payType',pay.paytype?c)}
                                                            </#if>
                                                        </p>
                                                        <p><strong>支付宝账号：</strong>${pay.aliaccount!}</p>
                                                        <p><strong>收款人的姓名：</strong>${pay.realname!}</p>
                                                        <#else>
                                                            <p><strong>打款方式：</strong>
                                                                <#if pay.paytype??>
                                                                    ${dict.getDicName('cash_pay_payType',pay.paytype?c)}
                                                                </#if>
                                                            </p>
                                                            <p><strong>银行名称：</strong>${pay.bankname!}</p>
                                                            <p><strong>银行账号：</strong>${pay.bankaccount!}</p>
                                                            <p><strong>银行开户地（哪个支行）：</strong>${pay.bankplace!}</p>
                                                            <p><strong>收款人的姓名：</strong>${pay.realname!}</p>
                                                    </#if>
                                                    <input type="hidden" name="id" value="${pay.id}">
                                                    <input type="hidden" name="applyId" value="${applyId}">
                                                    <input type="hidden" id="status" name="status" value="1">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="am-u-sm-12">
                                            <div class="am-form-group">
                                                <label for="serialno" class=" am-form-label">
                                                    <#if pay.paytype?? && pay.paytype==1>支付宝<#else>银行</#if>流水号
                                                </label>
                                                <div class="">
                                                    <input type="text" id="serialno" name="serialno"
                                                           value="${pay.serialno!}">
                                                </div>
                                            </div>
                                            <div class="am-form-group">
                                                <label for="doc-ta-1">审核备注</label>
                                                <textarea class="" rows="5" id="doc-ta-1" name="checkcontent">${apply.checkcontent!}</textarea>
                                            </div>
                                            <div class="am-form-group">
                                                <div class="am-u-sm-12 am-u-sm-offset-5">
                                                    <button type="button" onclick="verify_b(1)"
                                                            class="am-btn am-btn-primary">确认打款
                                                    </button>
                                                    <button type="button" onclick="verify_b(2)"
                                                            class="am-btn am-btn-primary">取消申请
                                                    </button>
                                                    <a href="javascript:history.back();"
                                                       class="am-btn am-btn-default">返回</a>
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<#include "/pc/common/alert.html" />
<script src="${contextPath}/assets/js/amazeui.min.js"></script>
<script src="${contextPath}/assets/js/amazeui.datatables.min.js"></script>
<script src="${contextPath}/assets/js/dataTables.responsive.min.js"></script>
<script type="text/javascript" src="${contextPath}/assets/js/amazeui.page.js"></script>
<script src="${contextPath}/assets/js/app.js"></script>
<script>
    function verify_b(status) {
        var msg = "你确定打款吗？";
        if (status == 2) {
            msg = "你确定驳回该提现申请吗？";
            $("#status").val(2);
        } else {
            if (!$("#serialno").val()) {
                Malert("请输入支付宝或银行流水号");
                return false;
            }
        }
        Mconfirm(msg, function () {
            $("#myform").submit();
        });
    }
</script>
</body>

</html>